package com.sky.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class EmployeeDTO implements Serializable {

    @ApiModelProperty(example = "1", value = "主键")
    private Long id;
    @ApiModelProperty(example = "admin", value = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;
    @ApiModelProperty(example = "123456", value = "姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;
    @ApiModelProperty(example = "123456", value = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;
    @ApiModelProperty(example = "1", value = "性别")
    private String sex;
    @ApiModelProperty(example = "123456", value = "身份证号")
    @NotBlank(message = "身份证不能为空")
    private String idNumber;

}
